import axios from 'axios'
export function indexData(callback) {
  axios.get('apis/bizMonitorArea/indexData')
    .then(function (response) {
      callback(response.data);
    })
    .catch(function (error) {
      console.log(error);
    });
}
export function subIndexData(subSiteId , callback){
  axios.get('apis/bizMonitorArea/subIndexData/'+subSiteId)
    .then(function (response) {
      callback(response.data);
    })
    .catch(function (error) {
      console.log(error);
    });
}
